-
-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support atomic batch transactions #5306
base: main
Are you sure you want to change the base?
Conversation
Create prepare utils.
Add initial unit tests.
Add feature flags util.
@metamaskbot publish-preview |
@metamaskbot publish-preview |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions.
|
Explanation
Support atomic batch transactions via EIP-7702, and ERC-7821.
Specifically:
addTransactionBatch
method withTransactionBatchRequest
andTransactionBatchResult
types.execute
call using ERC-7821 ABI.setCode
transaction if needed.isAtomicBatchSupported
method to identify which chains support atomic batch for a given account.batch
TransactionType
.batch
utils to encapsulate all batch-related logic.feature-flags
utils to encapsulate retrieval and fallback of LaunchDarkly configuration.to
of external transaction is not an internal account unlesstransactionType
isbatch
.References
Fixes #4096
Changelog
See
CHANGELOG.md
.Checklist